package com.inno.game.dao;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository("GameDao")
public class GameDao {
	@Resource(name="MysqlJdbcTemplate")
	private JdbcTemplate jdbcTemplate;

	public List<Map<String, Object>> getRecordsBySql(String sqlString) throws DataAccessException{
		return jdbcTemplate.queryForList(sqlString);
	}
}
